<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 

class User {
	
	
	
    public function get_name($id)
    {
	$CI =& get_instance();
	$query="select `namadepan`, `namabelakang` from user where `id`='$id' limit 1";
	$result=$CI->db->query($query);
	$username=NULL;
	foreach ($result->result() as $user){
	$username=$user->namadepan." ".$user->namabelakang;
	}
	return $username;
    }
}

/* End of file Someclass.php */